let resolvePromise = new Promise(resolve => {
    let resolvedPromise = Promise.resolve()
    // resolve(resolvedPromise)
    Promise.resolve().then(() => {
        resolvedPromise.then(resolve)
    })
})
resolvePromise.then(() => {
    console.log('resolvePromise resolved')
})
let resolvedPromiseThen = Promise.resolve().then(res => {
    console.log('promise1')
})
resolvedPromiseThen
    .then(() => {
        console.log('promise2')
    })
    .then(() => {
        console.log('promise3')
    })
// let p1 = new Promise((resolve, reject)=> {
//     let p2 = Promise.resolve()
//    Promise.resolve().then(() => {
//     p2.then(resolve)
//    })
// }).then(() => {
//     console.log('9');
// })
// let p = Promise.resolve(new Promise((resolve) => {
//     resolve()
// })).then(() => {
//     console.log('6');
// })